<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>入金详细</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <include file="Index/common_css"/>
    <link href="__PUBLIC__/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <style type="text/css">
        .width{
            width: 200px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>入金详情</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">mt4账号：</label>
                            <label class="col-sm-3 control-label">{$data.mt4}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">入金方式：</label>
                            <label class="col-sm-3 control-label">{$data.modu}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">金额（$）：</label>
                            <label class="col-sm-3 control-label">{$data.money}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">汇率：</label>
                            <label class="col-sm-3 control-label">{$data.rate}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">手续费：</label>
                            <label class="col-sm-3 control-label">{$data.counter_fee}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">最终金额（$）：</label>
                            <label class="col-sm-3 control-label">{$data.final_money}</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label width">入金时间：</label>
                            <label class="col-sm-3 control-label">{$data.into_time}</label>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label width">状态：</label>
                            <label class="col-sm-3 control-label">{$data.state}</label>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button  class="btn btn-sm btn-info" type="button" onclick="layer_close();">返回</button>
                               <if condition="$data.status eq 1">
                                   <a style="margin-left: 80px;" data-toggle="modal" class="btn btn-primary" href="intoGold_OneData.html#modal-form">手动补单</a>
                               </if>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--弹出层》-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-6 b-r">
                        <h3 class="m-t-none m-b">请填写注释</h3>
                        <form role="form">
                            <div class="form-group">
                                <label>注释：</label>
                                <input type="text" id="Notes" class="form-control" />
                            </div>

                            <div>
                                <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="button" onclick="intoGold_Order(this,'{$data.mt4}');"><strong>确认</strong>
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<include file="Index/common_js"/>
<!-- Peity -->
<script src="__PUBLIC__/admin/js/plugins/peity/jquery.peity.min.js"></script>
<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<script src="__PUBLIC__/common/js/layer_show.js"></script>
<!-- iCheck -->
<script>
    function intoGold_Order(obj,mt4) {
        var notes = $("#Notes").val();
        var id = '{$data.id}';
        if(notes==''){
            layer.msg("注释不能为空");
        }else if(id=='' || mt4==''){
            layer.msg("信息获取失败，请刷新重试");
        }else{
            $.post('__MODULE__/Apply/intoGold_Order',{notes:notes,mt4:mt4,id:id},function (data) {
                if(data.status==1){
                    layer.msg(data.msg);setTimeout(function () {location.reload();}, 1000);
                }else if(data.status==0){
                    layer.msg(data.error);
                }else{
                    layer.msg('网络错误');
                }
            })
        }

    }

</script>

</body>

</html>
